//
//  VLabel.h
//  OCJavaScript
//
//  Created by xiaerfei on 2019/7/31.
//  Copyright © 2019 xiaerfei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <JavaScriptCore/JavaScriptCore.h>

@protocol UILabelJavaScriptMethods <JSExport,NSObject>
@property(nonatomic) CGRect            frame;
@property(nonatomic, strong) NSString *idName;
@property(nonatomic,copy)   NSString    *text;
@property(nonatomic,strong) UIFont      *font;
@property(nonatomic,strong) UIColor     *textColor;
@property(nonatomic,strong) UIColor     *shadowColor;
@property(nonatomic)        CGSize      shadowOffset;
@property(nonatomic)        NSTextAlignment textAlignment;
@property(nonatomic)        NSLineBreakMode lineBreakMode;

JSExportAs(backgroundColor, - (void)backgroundColor:(NSString *)color);
@end


@interface VLabel : UILabel<UILabelJavaScriptMethods>
@property (nonatomic, strong) NSString *idName;
@end

